package com.swa.facebookdownloader;

import java.util.Locale;

import com.swa.facebookdownloader.util.Logger;

import android.app.Application;
import android.app.DownloadManager;
import android.content.Context;
import android.content.res.Configuration;

public class FacebookDownloader extends Application {

	public static DownloadManager downloadManager;
	public static DownloadManager.Request request;
	public static long latestId = -1;
	public static Locale systemLocale;
	public static String strDisplayCountry, strCountry, strLanguage;

	@Override
	public void onConfigurationChanged(Configuration newConfig) {
		super.onConfigurationChanged(newConfig);
	}

	@Override
	public void onCreate() {
		super.onCreate();
		downloadManager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);

		systemLocale = getResources().getConfiguration().locale;
		strDisplayCountry = systemLocale.getDisplayCountry();
		strCountry = systemLocale.getCountry();
		strLanguage = systemLocale.getLanguage();

		Logger.e(strDisplayCountry);
		Logger.e(strCountry);
		Logger.e(strLanguage);

	}

	@Override
	public void onLowMemory() {
		super.onLowMemory();
	}

	@Override
	public void onTerminate() {
		super.onTerminate();
	}

}
